🧩 Symbolic AI · Lesson 2

πŸ”§ The Tools: How we build a "White Box" machine

Recap: The "White Box" Approach

In the previous lesson, we established that Symbolic AI is a top-down approach where humans explicitly write the rules and logic. Because you can literally trace every logical step the machine takes, we call it a "White Box"β€”meaning the reasoning is fully transparent and easy to audit, unlike the "Black Box" of Machine Learning.

But how do we actually build one of these systems? There are three core tools that every Symbolic AI uses: Knowledge Representation (how it stores facts), Search Algorithms (how it navigates those facts), and Inference Engines (how it applies logic to combine them).

πŸ› οΈ Tool 1: Knowledge Representation (KR)

Knowledge Representation is the way we structure and store facts and rules in a format a computer can understand. Instead of vague text, we use strict logic.

The most common form of KR is the IF-THEN rule. These rules form a Tree of Logic. If you have a chain of linear rules, it forms a straight line, but often there are branching points.

🌳 The "Tree of Logic" Example: "My car won't start."

IF (Car won't start) β”œβ”€β”€ THEN (Check battery) β”‚ β”œβ”€β”€ IF (Battery is dead) β†’ THEN (Jump start it) β”‚ └── IF (Battery is fine) β†’ THEN (Check fuel gauge) β”‚ β”œβ”€β”€ IF (Fuel is empty) β†’ THEN (Refuel) β”‚ └── IF (Fuel is not empty) β†’ THEN (Call a mechanic)

Why this is a tree: At the "Check battery" step, the logic branches off. If the battery is fine, you don't jump start it. Instead, you move to the next branch (checking the fuel).

πŸ“¦ Other forms of KR:
  • Decision Trees: A visual, tree-like model of decisions and their possible consequences.
  • Semantic Networks: A graph showing concepts as nodes and relationships as connecting lines (e.g., Dog β†’ "is a" β†’ Mammal).

❓ Question 1 β€” Which of the following scenarios BEST illustrates the use of Knowledge Representation?